import axios from "axios";

export const getFSItems = async (directory: string): Promise<any> => {
    return axios.get("/api/fs/get-fs-items", { params: { directory } });
};

export const gotoSubDir = async (directory: string, subdir: string): Promise<any> => {
    return axios.get("/api/fs/goto-sub-dir", { params: { directory, subdir: subdir } });
};

export const gotoParentDir = async (directory: string): Promise<any> => {
    return axios.get("/api/fs/goto-parent-dir", { params: { directory } });
};

